home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / DispMod.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  6.1 KB  |  198 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: DispMod.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODDispatchModule_h
  18. #define SOM_ODDispatchModule_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default.
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODDispatchModule
  34. #define ODDispatchModule SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef SOMClass
  42.     #define SOMClass SOMObject
  43. #endif /* SOMClass */
  44. #ifndef SOMObject
  45.     #define SOMObject SOMObject
  46. #endif /* SOMObject */
  47. #ifndef ODFrame
  48.     #define ODFrame SOMObject
  49. #endif /* ODFrame */
  50. #ifndef ODFacet
  51.     #define ODFacet SOMObject
  52. #endif /* ODFacet */
  53. #ifndef ODObject
  54.     #define ODObject SOMObject
  55. #endif /* ODObject */
  56. #ifndef ODExtension
  57.     #define ODExtension SOMObject
  58. #endif /* ODExtension */
  59. #ifndef ODDispatchModule
  60.     #define ODDispatchModule SOMObject
  61. #endif /* ODDispatchModule */
  62. #ifndef ODSession
  63.     #define ODSession SOMObject
  64. #endif /* ODSession */
  65.  
  66. /*
  67.  * End of user-defined types.
  68.  */
  69.  
  70. #define ODDispatchModule_MajorVersion 1
  71. #define ODDispatchModule_MinorVersion 0
  72.  
  73. /*
  74.  * External name shortening if required
  75.  */
  76. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  77. #define ODDispatchModuleClassData d
  78. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  79. /*--------------Migration------------*/
  80.  
  81. #ifdef OLDIBMSOMAPISUPPORT
  82. #define ODDispatchModule_classObj somNewClassReference(ODDispatchModule)
  83. #define _ODDispatchModule ODDispatchModule_classObj
  84. #define ODDispatchModuleCClassData ODDispatchModuleClassData
  85. #define ODDispatchModuleNewClass(major,minor) somNewVersionedClassReference(ODDispatchModule,major,minor)
  86. #endif
  87.  
  88. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  89. #define ODDispatchModuleMetaClass SOMClass
  90.  
  91. #if PRAGMA_ALIGN_SUPPORTED
  92. #  pragma options align=power
  93. #endif
  94.  
  95. /*
  96.  * Declare the class data structure
  97.  */
  98. SOMEXTERN struct ODDispatchModuleClassDataStructure {
  99. #ifdef OLDIBMSOMAPISUPPORT
  100.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  101. #else
  102.     long zero;
  103. #endif
  104.     somStaticClassInfo *sci;
  105.     somDToken        instanceDataToken;
  106.     long reserved [3];
  107.     somMToken InitDispatchModule;
  108.     somMToken Dispatch;
  109. } SOMDLINK ODDispatchModuleClassData;
  110.  
  111. #if PRAGMA_ALIGN_SUPPORTED
  112. #  pragma options align=reset
  113. #endif
  114.  
  115. #if !defined(ODDispatchModule_Class_Source) && !defined(SOM_Module_dispmod_Source)
  116. #if PRAGMA_IMPORT_SUPPORTED
  117. #pragma import list ODDispatchModuleClassData
  118. #endif
  119. #endif
  120.  
  121.  
  122. /*
  123.  * New macro for ODDispatchModule
  124.  */
  125. #define ODDispatchModuleNew() somNewObject(ODDispatchModule)
  126.  
  127. /*
  128.  * New Method: InitDispatchModule
  129.  */
  130. typedef void   (SOMLINK *somTD_ODDispatchModule_InitDispatchModule)(ODDispatchModule *somSelf, Environment *ev,
  131.         ODSession* session);
  132. #define somMD_ODDispatchModule_InitDispatchModule "::ODDispatchModule::InitDispatchModule"
  133. #define ODDispatchModule_InitDispatchModule(somSelf,ev,session) \
  134.     (SOM_Resolve(somSelf, ODDispatchModule, InitDispatchModule) \
  135.     (somSelf,ev,session))
  136. #ifndef SOMGD_InitDispatchModule
  137.     #if (defined(_InitDispatchModule) || defined(__InitDispatchModule))
  138.         #undef _InitDispatchModule
  139.         #undef __InitDispatchModule
  140.         #define SOMGD_InitDispatchModule 1
  141.     #else
  142.         #define _InitDispatchModule ODDispatchModule_InitDispatchModule
  143.     #endif /* _InitDispatchModule */
  144. #endif /* SOMGD_InitDispatchModule */
  145.  
  146. /*
  147.  * New Method: Dispatch
  148.  */
  149. typedef ODBoolean   (SOMLINK *somTD_ODDispatchModule_Dispatch)(ODDispatchModule *somSelf, Environment *ev,
  150.         ODEventData* event,
  151.         ODEventInfo* eventInfo);
  152. #define somMD_ODDispatchModule_Dispatch "::ODDispatchModule::Dispatch"
  153. #define ODDispatchModule_Dispatch(somSelf,ev,event,eventInfo) \
  154.     (SOM_Resolve(somSelf, ODDispatchModule, Dispatch) \
  155.     (somSelf,ev,event,eventInfo))
  156. #ifndef SOMGD_Dispatch
  157.     #if (defined(_Dispatch) || defined(__Dispatch))
  158.         #undef _Dispatch
  159.         #undef __Dispatch
  160.         #define SOMGD_Dispatch 1
  161.     #else
  162.         #define _Dispatch ODDispatchModule_Dispatch
  163.     #endif /* _Dispatch */
  164. #endif /* SOMGD_Dispatch */
  165. #ifndef SOM_DONT_USE_INHERITED_MACROS
  166. #define ODDispatchModule_InitObject ODObject_InitObject
  167. #define ODDispatchModule_HasExtension ODObject_HasExtension
  168. #define ODDispatchModule_AcquireExtension ODObject_AcquireExtension
  169. #define ODDispatchModule_ReleaseExtension ODObject_ReleaseExtension
  170. #define ODDispatchModule_Purge ODObject_Purge
  171. #define ODDispatchModule_IsEqualTo ODObject_IsEqualTo
  172. #define ODDispatchModule_SubClassResponsibility ODObject_SubClassResponsibility
  173. #define ODDispatchModule_somInit SOMObject_somInit
  174. #define ODDispatchModule_somUninit SOMObject_somUninit
  175. #define ODDispatchModule_somInit SOMObject_somInit
  176. #define ODDispatchModule_somUninit SOMObject_somUninit
  177. #define ODDispatchModule_somDuplicateReference SOMObject_somDuplicateReference
  178. #define ODDispatchModule_somCompareReference SOMObject_somCompareReference
  179. #define ODDispatchModule_somRelease SOMObject_somRelease
  180. #define ODDispatchModule_somFree SOMObject_somFree
  181. #define ODDispatchModule_somCanDelete SOMObject_somCanDelete
  182. #define ODDispatchModule_somGetClass SOMObject_somGetClass
  183. #define ODDispatchModule_somGetClassName SOMObject_somGetClassName
  184. #define ODDispatchModule_somGetSize SOMObject_somGetSize
  185. #define ODDispatchModule_somIsA SOMObject_somIsA
  186. #define ODDispatchModule_somRespondsTo SOMObject_somRespondsTo
  187. #define ODDispatchModule_somIsInstanceOf SOMObject_somIsInstanceOf
  188. #define ODDispatchModule_somDispatch SOMObject_somDispatch
  189. #define ODDispatchModule_somClassDispatch SOMObject_somClassDispatch
  190. #define ODDispatchModule_somCastObj SOMObject_somCastObj
  191. #define ODDispatchModule_somResetObj SOMObject_somResetObj
  192. #define ODDispatchModule_somPrintSelf SOMObject_somPrintSelf
  193. #define ODDispatchModule_somDumpSelf SOMObject_somDumpSelf
  194. #define ODDispatchModule_somDumpSelfInt SOMObject_somDumpSelfInt
  195. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  196.  
  197. #endif       /* SOM_ODDispatchModule_h */
  198.